<template>
  <div class="m-page-main" style="height: auto">
    <ul class="exp-list">
      <li v-for="car in list" :key="car.id">
        <img :src="car.logoimage" class="exp-list-img" />
        <div class="exp-content">
          <div class="exp-title">标题内容</div>
          <div class="exp-meta">正文内容正文内容正文内容正文内容正文内容正文内容正文内容正文内容正文内容正文内容正文内容正文内容正文内容正文内容正文内容正文内容正文内容正文内容正文内容正文内容</div>
        </div>
        <divider direction="vertical"></divider>
        <div class="exp-status">
          <i class="el-alert__icon el-icon-success"></i>
          预约成功
        </div>
      </li>
    </ul>
    <Pagination
      class="mu-page"
      :hide-on-single-page="true"
      background
      layout="prev, pager, next"
      :total="total"
    >
    </Pagination>
  </div>
</template>
<script>
import { Pagination, Divider } from "element-ui";
import { luntanyvyue } from "../../../api/cms.js";
export default {
  components: {
    Pagination, Divider
  },
  data() {
    return {
      page: 1,
      limit: 10,
      total: 0,
      list: []
    };
  },
  created() {
    this.getList()
  },
  methods: {
    getList() {
      luntanyvyue({
        page: this.page,
        limit: this.limit,
      }).then((res) => {
        console.log(res)
        this.list = res.data.data.rows
        this.total = res.data.data.total
      });
    },
  },
};
</script>
<style scoped>
.m-page-main {
  width: 995px;
  float: right;
  margin-right: 2px;
}

.exp-list {
  border-radius: 10px;
}
.exp-list li {
  color: #7d7d7d;
  font-size: 18px;
  background-color: rgb(255, 255, 255);
  box-shadow: 2.5px 4.33px 10px 0px rgb(0, 0, 0, 0.2);
  padding: 25px 30px 25px;
  border-bottom: 1px solid #ddd;
  display: flex;
  align-items: center;
}
.exp-list li:nth-child(1) {
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}
.exp-list li:last-child {
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}
.exp-list img {
  width: 180px;
  height: 110px;
  border-radius: 50%;
  margin-right: 30px;
}
.exp-title {
  font-size: 20px;
  color: #535353;
  padding: 5px 0 10px;
}
.exp-meta {
  font-size: 16px;
  line-height: 30px;
  height: 60px;
  overflow: hidden;
  text-overflow: -o-ellipsis-lastline;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}
.exp-status {
  width: 140px;
  height: 78px;
  color: #009944;
  font-size: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-left: 10px;
}
.exp-content {
  padding-right: 64px;
  flex: 1;
}
.exp-status i {
  font-size: 40px;
}
.exp-list >>> .el-divider--vertical {
  height: 78px;
  width: 2px;
}
</style>

